package com.ruoyi.hyg.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 免费资料对象 free_resource
 *
 * @author ruoyi
 * @date 2025-08-13
 */
public class FreeResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    
    /** 资料ID */
    private Long id;
    
    /** 资料标题 */
    @Excel(name = "资料标题")
    private String title;
    
    /** 资料描述 */
    @Excel(name = "资料描述")
    private String description;
    
    /** 文件URL */
    @Excel(name = "文件URL")
    private String fileUrl;
    
    /** 下载次数 */
    @Excel(name = "下载次数")
    private Long downloadCount;
    
    /** 0是已删除，1是保留 */
    private Long del;
    
    public void setId(Long id)
    {
        this.id = id;
    }
    
    public Long getId()
    {
        return id;
    }
    
    public void setTitle(String title)
    {
        this.title = title;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public void setDescription(String description)
    {
        this.description = description;
    }
    
    public String getDescription()
    {
        return description;
    }
    
    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }
    
    public String getFileUrl()
    {
        return fileUrl;
    }
    
    public void setDownloadCount(Long downloadCount)
    {
        this.downloadCount = downloadCount;
    }
    
    public Long getDownloadCount()
    {
        return downloadCount;
    }
    
    public void setDel(Long del)
    {
        this.del = del;
    }
    
    public Long getDel()
    {
        return del;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("fileUrl", getFileUrl())
                .append("downloadCount", getDownloadCount())
                .append("createTime", getCreateTime())
                .append("del", getDel())
                .toString();
    }
}
